﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = "车牌识别设备管理";
}
@using AFT.Parking.Bizlogic.Coordinate
@using AFT.Parking.Entity.Parkings;
@using AFT.Parking.Foundation;
@using AFT.Parking.WebSite.Common
@model IPagedList<MonitorAreaShareMapping>
<div class="content-box">
    
    <div class="content-box-header">
        <h3>@ViewBag.ParkingAreaName 监控摄像头</h3>
        <div class="clear"></div>
    </div>
    
    <form id="monitorList">
        <div class="content-box-content">
            
            <div class="tab-content default-tab" id="tab1">
                <div class="notification attention png_bg">
                    设备名称：
                    @Html.TextBox("name",null,new{@class="searchBox"})
                    <input type="submit" class="button" id="btnSubmit" value="查询" />
                    @if (ViewBag.ParkingAreaId > 0)
                    {
                        <a href="/ParkingCamera/AddCamera?parkingAreaId=@ViewBag.ParkingAreaId">添加设备</a>
                    }
                </div>
                <input type="hidden" id="length" value="@Model.Rows.Count()" />
                <table>
                    <thead>
                        <tr>
                            <th>名称</th>
                            <th>停车场</th>
                            <th>停车区</th>
                            <th>车牌管理区域</th>
                            <th>Ip地址及端口</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tfoot>
                        <tr>
                            <td colspan="4">
                                <div class="pagination">
                                    @Html.Pager(Model)
                                </div>
                                <!-- End .pagination -->
                                <div class="clear"></div>
                            </td>
                        </tr>
                    </tfoot>
                    <tbody id="tBodyRows">
                        @foreach (var item in Model.Rows)
                        {
                            <tr id="@("tr"+item.ParkingMonitor.Id)">
                                <td>@item.ParkingMonitor.Name</td>
                                <td>@item.ParkingsName</td>
                                <td>@item.ParkingAreaName</td>
                                <td>
                                    @item.AreaShareFromName --> @item.AreaShareToName
                                </td>
                                <td>@item.ParkingMonitor.Ip : @item.ParkingMonitor.Port</td>
                                <td>
                                    <a href="/parkingCamera/EditCamera/@item.ParkingMonitor.Id" title="编辑">编辑</a>
                                    @*<a href="#" title="删除">删除设备</a>*@
                                </td>
                            </tr>
                        }
                    </tbody>
                </table>
            </div>
        </div>
    </form>
</div>